package Day04;

public class Text1 {
    public static void toString(int[] array) {
        System.out.print("[");
        for (int i = 0; i < array.length; i++) {
            System.out.print(i);
            if(i < array.length - 1){
                System.out.print(",");
            }
        }
        System.out.print("]");
    }
    public static void main(String[] args) {
     int[] array = {1,2,3,4};
     toString(array);
    }
}
